package com.base.service.COUPON;

import com.base.po.coupon_prestore.CouponCategoryPrestore;
import com.base.po.coupon_prestore.CouponCategoryPrestoreExample;
import com.base.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CouponCategoryPrestoreService {
    int countByExample(CouponCategoryPrestoreExample example);

    int deleteByExample(CouponCategoryPrestoreExample example);

    int deleteByPrimaryKey(String id);

    int insert(CouponCategoryPrestore record);

    int insertSelective(CouponCategoryPrestore record);

    List<CouponCategoryPrestore> selectByExample(CouponCategoryPrestoreExample example);

    CouponCategoryPrestore selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") CouponCategoryPrestore record, @Param("example") CouponCategoryPrestoreExample example);

    int updateByExample(@Param("record") CouponCategoryPrestore record, @Param("example") CouponCategoryPrestoreExample example);

    int updateByPrimaryKeySelective(CouponCategoryPrestore record);

    int updateByPrimaryKey(CouponCategoryPrestore record);

    List<CouponCategoryPrestore> selectAll(@Param("page") Page page, @Param("parentId") String parentId, @Param("sort") Integer sort);

    int countAll(String parentId);
}